package com.chanjet.donkey.component.saas;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class DynamicDataSource extends AbstractRoutingDataSource {

	protected Object determineCurrentLookupKey() {
		System.out.println("================determineCurrentLookupKey: " + TenantUtil.getTenantId());
		return TenantUtil.getTenantId();
	}

}
